<?php
$de_company_id = empty($selectdata['company_id']) ? 0 :$selectdata['company_id'];
$de_city_id = empty($selectdata['city_id']) ? 0 :$selectdata['city_id'];
$de_bu_id = empty($selectdata['bu_id']) ? 0 :$selectdata['bu_id'];
$de_function_id = empty($selectdata['function_id']) ? 0 :$selectdata['function_id'];
?>

<?php if(!$no_company):?>
<select style="width:110px" name="company_id" id="company_id">
<?php foreach($selectdata['company'] as $val):?>
    <option value="<?=$val['company_id']?>" <?php if($de_company_id==$val['company_id']):?>selected="selected"<?php endif;?>><?=$val['company_name']?></option>
<?php endforeach;?>
</select>
<?php endif;?>
<select style="width:87px" name="city_id" id="city_id">
    <option value="0">&ndash;城市&ndash;</option>
    <?php foreach($selectdata['citylist'] as $city_id=>$val):?>
    <option value="<?=$city_id?>" <?php if($de_city_id==$city_id):?>selected="selected"<?php endif;?>><?=$val?></option>
    <?php endforeach;?>
</select>
<select class="span1" style="width:95px" name="bu_id" id="bu_id">
    <option value="0">-事业部-</option>
    <?php foreach($selectdata['business'] as $val):?>
    <option value="<?=$val['bu_id']?>" <?php if($de_bu_id==$val['bu_id']):?>selected="selected"<?php endif;?>><?=$val['bu_name']?></option>
    <?php endforeach;?>
</select>
<select class="span1" style="width:110px" name="function_id" id="function_id">
    <option value="0">-职能-</option>
    <?php foreach($selectdata['function'] as $val):?>
    <option value="<?=$val['function_id']?>" <?php if($de_function_id==$val['function_id']):?>selected="selected"<?php endif;?>><?=$val['function_name']?></option>
    <?php endforeach;?>
</select>